home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0497 / AMOSLIST / 000125_amos-request@svcs1.digex.net_Tue Apr 15 14:25:16 1997.msg < prev    next >
Text File  |  1998-06-24  |  3KB  |  80 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail1.access.digex.net (8.8.5/8.8.5) with ESMTP id OAA15784
  3.     for <mcox@access.digex.net>; Tue, 15 Apr 1997 14:25:15 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id KAA13553
  6.     for amos-out; Tue, 15 Apr 1997 10:49:35 -0400 (EDT)
  7. Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id KAA13550
  9.     for <amos-list@svcs1.digex.net>; Tue, 15 Apr 1997 10:49:34 -0400 (EDT)
  10. Received: from ihug.co.nz (ihug.co.nz [203.29.160.4])
  11.     by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id KAA04660
  12.     for <amos-list@access.digex.net>; Tue, 15 Apr 1997 10:49:32 -0400 (EDT)
  13. Received: from ihug.co.nz (falcon@Port19-Metis.es.co.nz [202.49.249.119]) by ihug.co.nz (8.7.5/8.7.3) with SMTP id CAA03364; Wed, 16 Apr 1997 02:52:26 +1200 (NZST)
  14. From: Laurie Curwood <falcons@ihug.co.nz>
  15. Reply-To: Laurie Curwood <falcons@ihug.co.nz>
  16. To: AMOS Mailing List <amos-list@access.digex.net>
  17. CC: theone@ihug.co.nz
  18. Date: Wed, 16 Apr 1997 02:26:36 +1200
  19. Message-ID: <yam7045.1829.132158680@smtp.ihug.co.nz>
  20. X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
  21. Organization: IHUG
  22. Subject: Multi Plot Command
  23. MIME-Version: 1.0
  24. Content-Type: text/plain
  25. Status: O
  26. X-Status: 
  27.  
  28. If anyone is interested, I have almost finished coding a Multi Plot 
  29. command, to add to my Falcon Extension (Available from my web page, read
  30. a previous message). This command has the following capabilites:
  31.  
  32. Syntax:
  33.  
  34. Multi Plot X,Y,N,A
  35.  
  36. X=Starting X Coordinate of where you want to plot to.
  37. Y=Y coordinate of where you want to plot to.
  38. N=Number of pixels you want to plot.
  39. A=Starting address of `colour data' in memory.
  40.  
  41. Let me explain excatly what it does!
  42.  
  43. Say you are doing some sort of minimap. 32x32 pixels for example. Normal code:
  44.  
  45. S=Start(10)      ; Bank 10 will contain your colour data (0-63, example)
  46.  
  47. For Y=0 to 31
  48.    For X=0 to 31
  49.       Plot X,Y,S+Y*32+X
  50.    Next X
  51. Next Y
  52.  
  53. Okay. I know you could optomise that multiplication, and change the plot
  54. command for F Plot, Turbo Plot, Falcon Plot or whatever, but that is not the
  55. point! Using the Multi Plot command, it would be like this:
  56.  
  57. For Y=0 to 31
  58.    Multi Plot X,Y,32,S+Y*32
  59. Next Y
  60.  
  61. Advantages of this method:
  62.  
  63. * Less code = easier to read.
  64. * Don't have to worry about optomisation.
  65. * Since you only call the command once (per line), it only has to find the
  66. screen address once, only has to work out where to start from once, etc.
  67. Rather than 32 times. This simple fact alone, triples the speed!!!!!
  68.  
  69. Interested? Good. It will be available VERY SHORTLY! First, though, I want to
  70. know what features you think I should put in it! (Nothing too difficult). Tell
  71. me if it is worth making the same command, but going down instead of accross
  72. etc. And what you think the syntax should be.
  73.  
  74. Thankyou.
  75.  
  76. -- 
  77. ***************
  78. Falcon Software
  79. ***************
  80.